import 'package:aweb5/generated/json/base/json_convert_content.dart';
import 'package:aweb5/generated/json/base/json_filed.dart';
import 'package:video_player/video_player.dart';


//{
//"msg": "\u8bf7\u6c42\u6210\u529f",
//"data": {
//"group": [{
//"id": 1,
//"wx_group_name": "\u6751\u957f\u6d4b\u8bd5\u7fa41",
//"is_default": 1
//}, {
//"id": 2,
//"wx_group_name": "\u6751\u957f\u6d4b\u8bd5\u7fa42",
//"is_default": 0
//}, {
//"id": 3,
//"wx_group_name": "\u6751\u957f\u8fd0\u7ef4\u7fa41",
//"is_default": 0
//}],
//"time_data": [{
//"week": "\u5468\u4e94",
//"is_default": 1,
//"date": "2020-08-14",
//"date_month": "08.14",
//"task_send": [{
//"id": 7,
//"send_time": "2020-08-14 11:25",
//"name": "\u9178\u8fa3\u7c89\u5468\u4e94\u4efb\u52a1\u5305",
//"is_send": 0,
//"info": [{
//"type": 1,
//"data": "https:\/\/file.91aplus.com\/images_47ec82019040118401953999.jpg",
//"id": 143
//}, {
//"type": 1,
//"data": "https:\/\/file.91aplus.com\/images_f78462019040118401988451.jpg",
//"id": 144
//}, {
//"type": 1,
//"data": "https:\/\/file.91aplus.com\/images_c55c62019040118401932677.jpg",
//"id": 145
//}, {
//"type": 2,
//"data": "https:\/\/file.91aplus.com\/video_8ee5c2020010517193131198.mp4",
//"id": 146
//}, {
//"type": 3,
//"data": "\u6d4b\u8bd5\u6587\u5b57\n\u6d4b\u8bd5\u6587\u5b57\n\u6d4b\u8bd5\u6587\u5b57\n\u6d4b\u8bd5\u6587\u5b57\u6d4b\u8bd5\u6587\u5b57\u6d4b\u8bd5\u6587\u5b57\n",
//"id": 147
//}]
//}]
//}, {
//"week": "\u5468\u516d",
//"is_default": 0,
//"date": "2020-08-15",
//"date_month": "08.15",
//"task_send": []
//}, {
//"week": "\u5468\u65e5",
//"is_default": 0,
//"date": "2020-08-16",
//"date_month": "08.16",
//"task_send": []
//}, {
//"week": "\u5468\u4e00",
//"is_default": 0,
//"date": "2020-08-17",
//"date_month": "08.17",
//"task_send": []
//}, {
//"week": "\u5468\u4e8c",
//"is_default": 0,
//"date": "2020-08-18",
//"date_month": "08.18",
//"task_send": []
//}, {
//"week": "\u5468\u4e09",
//"is_default": 0,
//"date": "2020-08-19",
//"date_month": "08.19",
//"task_send": []
//}, {
//"week": "\u5468\u56db",
//"is_default": 0,
//"date": "2020-08-20",
//"date_month": "08.20",
//"task_send": []
//}],
//"member": {
//"name": "123",
//"nickname": "\u6751\u957f",
//"headimgurl": "http:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/Q0j4TwGTfTLpUCPS2WnRGyfl5H1Nl2KvMic3hlYtraYjic2BLbfmL39RAjOssv8LeAyQJPLgOLn53XJfpfEGI6eg\/132"
//},
//"follow": {
//"name": "A\u5bb6\u5b98\u65b9",
//"is_official": 1
//}
//},
//"code": 200
//}

class GroupPlanListEntity with JsonConvert<GroupPlanListEntity> {
	String msg;
	GroupPlanListData data;
	int code;
}

class GroupPlanListData with JsonConvert<GroupPlanListData> {
	List<GroupPlanListDataGroup> group;
	@JSONField(name: "time_data")
	List<GroupPlanListDataTimeData> timeData;
//	GroupPlanListDataMember member;
	GroupPlanListDataFollow follow;
}

class GroupPlanListDataGroup with JsonConvert<GroupPlanListDataGroup> {
	int id;
	@JSONField(name: "wx_group_name")
	String wxGroupName;
	@JSONField(name: "is_default")
	int isDefault;
}

class GroupPlanListDataTimeData with JsonConvert<GroupPlanListDataTimeData> {
	String week;
	@JSONField(name: "is_default")
	int isDefault;
	String date;
	@JSONField(name: "date_month")
	String dateMonth;
	@JSONField(name: "task_send")
	List<GroupPlanListDataTimeDataTaskSend> taskSend;
}

class GroupPlanListDataTimeDataTaskSend with JsonConvert<GroupPlanListDataTimeDataTaskSend> {
	int id;
	@JSONField(name: "send_time")
	String sendTime;
	String name;
	@JSONField(name: "is_send")
	int isSend;
	List<GroupPlanListDataTimeDataTaskSendInfo> info;
}

class GroupPlanListDataTimeDataTaskSendInfo with JsonConvert<GroupPlanListDataTimeDataTaskSendInfo> {
	int type;
	String data;
	int id;
	int index;
	String linkTitle;
	String linkPrice;
	VideoPlayerController controller;
	GroupPlanListDataTimeDataTaskSendInfo setController(VideoPlayerController controller){
		this.controller = controller;
		return this;
	}
}

//class GroupPlanListDataMember with JsonConvert<GroupPlanListDataMember> {
//	String name;
//	String nickname;
//	String headimgurl;
//}

class GroupPlanListDataFollow with JsonConvert<GroupPlanListDataFollow> {
	String name;
	@JSONField(name: "is_official")
	int isOfficial;
	String headimgurl;
}
